import 'package:pornhub_app/components/tab_bar_indicator/easy_fixed_indicator.dart';

import 'package:pornhub_app/utils/color.dart';

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:pornhub_app/utils/logger.dart';
import 'package:pornhub_app/views/mine/mine_releases/mine_release_brushvideo_page.dart';

class MineReleaseBrushVideoTab extends StatelessWidget {
  MineReleaseBrushVideoTab({super.key});

  final List tabs = ['已发布', '审核中', '未通过'];

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
        length: tabs.length,
        child: Scaffold(
          appBar: AppBar(
            automaticallyImplyLeading: false,
            title: TabBar(
                tabAlignment: TabAlignment.start,
                isScrollable: true,
                labelColor: COLOR.hexColor('#B93FFF'),
                unselectedLabelColor: COLOR.hexColor('#808080'),
                indicatorColor: COLOR.hexColor('B93FFF'),
                labelStyle:
                    TextStyle(fontSize: 14.w, fontWeight: FontWeight.w600),
                unselectedLabelStyle:
                    TextStyle(fontSize: 14.w, fontWeight: FontWeight.w500),
                dividerColor: Colors.transparent,
                indicatorPadding: EdgeInsets.only(bottom: 6.w),
                indicator: EasyFixedIndicator(
                  color: COLOR.hexColor('B93FFF'),
                  width: 10.w,
                  height: 3.w,
                ),
                tabs: tabs.map((v) => Tab(text: v)).toList()),
          ),
          body: const TabBarView(
            children: [
              MinesReleaseBrushVideoPage(videoStatus: 1),
              MinesReleaseBrushVideoPage(videoStatus: 2),
              MinesReleaseBrushVideoPage(videoStatus: 3),
            ],
          ),
        ));
  }
}
